int main()
{
alex *e;
alex*a;
bombe *b;
BITMAP *Background;
BITMAP *Buffer;
BITMAP *bg;


/* General initialization function */
allegro_init();
if (install_keyboard() == -1) {
allegro_message("Error! %s", allegro_error);
return -1;
}
set_color_depth(16);
if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0) != 0) 
{
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0); /* here’s the command for text mode */
allegro_message("Unable to initialize video mode!\n%s\n", allegro_error);
return 1;
}
Buffer = create_bitmap(800, 600);

load_background(bg);

blit(Background, Buffer, 0, 0, 0, 0, Background->w, Background->h);
blit(Buffer, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);

load_alex(e);
load_bombe(b);
int_alex(a);
int_bombe(b);
dep_alex(a,Background);
explosion(a,b,Background);

readkey();
destroy_bitmap(Buffer);
return 0;
}
END_OF_MAIN();

